<p style="margin-bottom: 0px">&nbsp;</p>
<nz-card>
  <form nz-form [nzLayout]="'inline'" class="search__form">
    <nz-row [nzGutter]="8">
      <nz-col nzMd="6" nzSm="24">
        <nz-form-item>
          <nz-form-control>
            <input nz-input [(ngModel)]="q.name" name="name" placeholder="输入姓名或账户" id="name">
          </nz-form-control>
        </nz-form-item>
      </nz-col>
      <nz-col nzMd="6" nzSm="24">
        <button nz-button type="button" [nzType]="'primary'" (click)="st.load(1, q)">查询</button>
      </nz-col>
    </nz-row>
  </form>
</nz-card>
<button nz-button style="margin-bottom: 8px" (click)="add()" [nzType]="'primary'"><i class="anticon anticon-plus"></i>添加</button>
<simple-table #st
  [columns]="columns"
  [data]="url"
  [ps]="ps"
  [extraParams]="q"
  [resReName]="{ total: 'data.total', list: 'data.rows'}"
  [reqReName]="{pi:'pageNumber', ps: 'pageSize'}"
  toTopInChange
  [showTotal]="true"
  [showSizeChanger]="true"
  [showPagination]="true">
  <ng-template st-row="isSuperAdmin" let-i>
    <span [ngClass]="{'text-cyan': i.isSuperAdmin === '0', 'text-gold': i.isSuperAdmin === '1'}">
      {{i.isSuperAdmin === '0' ? '普通身份' : '超级管理员' }}
    </span>
  </ng-template>
</simple-table>
